package com.onlyxiahui.framework.action.dispatcher.general.config;

import com.onlyxiahui.framework.action.dispatcher.ActionContext;
import com.onlyxiahui.framework.action.dispatcher.general.impl.GeneralActionMethodValidInterceptor;
import com.onlyxiahui.framework.action.dispatcher.general.impl.GeneralArgumentActionResolver;
import com.onlyxiahui.framework.action.dispatcher.general.impl.GeneralMethodArgumentResolver;

/**
 * Date 2019-01-17 21:59:57<br>
 * Description
 * 
 * @author XiaHui<br>
 * @since 1.0.0
 */

public class GeneralActionDefaultConfigurer extends GeneralActionConfigurerAdapter {

	@Override
	public void addConfig(ActionContext actionContext) {
		actionContext.getMethodArgumentResolverRegistry().add(new GeneralMethodArgumentResolver());
		actionContext.getMethodArgumentResolverRegistry().add(new GeneralArgumentActionResolver());

		actionContext.getActionMethodInterceptorRegistry().add(new GeneralActionMethodValidInterceptor());
	}
}
